package cn.bonoon.handler;

import org.springframework.security.core.userdetails.UsernameNotFoundException;

import cn.bonoon.entities.AccountEntity;

/**
 * <pre>
 * 用来替换OnLoginUserLoad
 * 
 * 可以自定义某些情况下某些账号不允许登录等处理
 * </pre>
 * @author jackson
 *
 */
public interface OnLoginFilter {
	void filter(AccountEntity user) throws UsernameNotFoundException;
}
